package uos.gcds.order.stragegy;

import java.util.ArrayList;
import java.util.List;

import uos.gcds.order.Order;

public abstract class CompositePricingStrategy implements IOrderPricingStrategy {

	private List<IOrderPricingStrategy> strateties;
	
	public CompositePricingStrategy(){
		this.strateties = new ArrayList<IOrderPricingStrategy>();
	}
	
	@Override
	abstract public int getTotal(Order order);
	
	public void add(IOrderPricingStrategy ops){
		strateties.add(ops);
	}

}
